/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ivanbiz.kelas;

import java.util.List;

/**
 *
 * @author User
 */
public class AccountKelasServiceImpl implements AccountKelasService {
    private AccountKelasDAO accountKelasDAO;

    public void setAccountKelasDAO(AccountKelasDAO accountKelasDAO) {
        this.accountKelasDAO = accountKelasDAO;
    }
    
      public void saveAccountKelas(AccountKelas accountKelas) throws Exception {
        this.accountKelasDAO.save(accountKelas);
    }

    public void deleteAccountKelas(AccountKelas accountKelas) throws Exception {
        this.accountKelasDAO.delete(accountKelas);
    }

    public void updateAccountKelas(AccountKelas accountKelas) throws Exception {
        this.accountKelasDAO.update(accountKelas);
    }

    public List loadAll() throws Exception {
        return this.accountKelasDAO.getAll(AccountKelas.class);
    }

    public AccountKelas loadById(long id) throws Exception {
        return (AccountKelas) this.accountKelasDAO.load(AccountKelas.class, id);
    }

    public List getAccountByKelas(String id) throws Exception {
        return this.getAccountByKelas(id);
    }

    public List getAccountBySiswa(String id) throws Exception {
        return this.getAccountBySiswa(id);
    }
}
